package board;

import com.opensymphony.xwork2.Action;

public class InsertAction implements Action {

	private BoardData board;
	
	@Override
	public String execute() throws Exception {

		BoardDao boardDao = BoardDao.getInstance();
		
		boardDao.insertBoard(board);
		
		return SUCCESS;
	}

	
	// getter, setter;
	public BoardData getBoard() {
		return board;
	}


	public void setBoard(BoardData board) {
		this.board = board;
	}
}
